package org.lds.scheduled.job.admin.business.appinstance.converter;

import org.lds.scheduled.job.admin.business.appinstance.entity.AppInstance;
import org.lds.scheduled.job.admin.business.appinstance.model.request.AppInstanceBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class AppInstanceBaseDeleteRequestToEntityConverter implements Converter<AppInstanceBaseDeleteRequest, AppInstance> {

    @Override
    public AppInstance convert(AppInstanceBaseDeleteRequest source) {
        return AppInstance.builder()
                .id(source.getId())
                .build();
    }

}


